﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace SimpleServiceBus.Persistence.NHibernate
{
    public interface ISessionManager: IDisposable
    {
        ISession CurrentSession { get; }
        ISession CreateSession();

        ISession BeginSession();
        void EndSession();

        ISession RecycleCurrentSession();
        void FlushCurrentSession();
    }
}
